<div class="row-fluid" style="margin-bottom: 10px;">
    <div class="span12">
        <div class="box corner-all">
            <div class="box-header grd-white corner-top">
                <i class="icon-file" style="margin-left: 10px;"></i><?= lang('label_view') ?></div>

            <div class="padded" id="action_load_mudle">
                <!-- action contant  -->
                <h4>

                    <span class="details_item"><?= lang('label_wallet_amount') ?> </span>
                    <? if(!empty($result->discount)) {
                        ?>
                    <span style="font-weight: bold;text-decoration:line-through"><?= $result->amount+get_discount_bank() ?></span>
                        <? }
                    ?>
                    <?= $result->amount ?> <?= lang('label_rial') ?></h4>
                <h4>
                    <span class="details_item"><?= lang('label_created_date') ?> </span>
                    <? echo $result->create_date; ?>
                </h4>


                <ul id="listview">



                    <li>
                        <span class="details_item"><?= lang('label_wallet_operation_type') ?> </span>
                        <? if ($result->operation != '') { ?> 

                            <?= lang('label_wallet_operation_' . $result->operation) ?>

                        <? } ?>  

                    </li>
                    <li><span class="details_item"><?= lang('label_wallet_statues_type') ?> </span>
                        <?
                        if ($result->status != '') {
                            echo lang('label_wallet_statues_' . $result->status);
                        }
                        ?>
                    </li>



                    <li>
                        <span class="details_item"><?= lang('label_note') ?> </span>
                        <?
                        if ($result->note != '') {
                            echo $result->note;
                        }
                        ?> 
                    </li>



                </ul>
                <?
                $wallet_bank = get_wallet_bank($result->id);

                if (count($wallet_bank) > 0) {
                    ?>
                    <ul id="listview">
                        <li>
                            <h4><?= lang('label_wallet_bank_label') ?> </h4> 
                        </li>

                        <li>
                            <span class="details_item"><?= lang('label_wallet_bank') ?> </span>
                            <?= $wallet_bank->bank_name ?>
                        </li>
                        <li>
                            <span class="details_item"><?= lang('label_wallet_sender_name') ?> </span>
                            <?= $wallet_bank->sender_name ?>
                        </li>
                        <li>
                            <span class="details_item"><?= lang('label_wallet_account_number') ?> </span>
                            <?= $wallet_bank->account_number ?>
                        </li>
                        <li>
                            <span class="details_item"><?= lang('label_note') ?> </span>
                            <?= $wallet_bank->note ?>
                        </li>

                    </ul>
                    <?
                }
                ?>
                <div class="tool">
                    <? if ($result->status == 'wait' || $result->status == 'pending'  ) { ?>
                        <a class="btn btn-success" href="<?= base_url() . get_segment(1) . '/' . get_segment(2) ?>/confirm/<?= $result->id ?>" style="margin-left:20px;"><i class="icon-check"></i>&nbsp;&nbsp;&nbsp;<?= lang('label_wallet_confirm_in_bank') ?></a>
                        <?
                        if ($result->operation == 'minus') {
                            ?>
                            <a class="btn btn-warning" href="<?= base_url() . get_segment(1) . '/' . get_segment(2) ?>/confirm/<?= $result->id ?>/?out=yes" style="margin-left:20px;"><i class="icon-check"></i>&nbsp;&nbsp;&nbsp;<?= lang('label_wallet_confirm_out_bank') ?></a>
                        <? } ?>
                       <a class="btn btn-danger" href="<?= base_url() . get_segment(1) . '/' . get_segment(2) ?>/rejected/<?= $result->id ?>/" style="margin-left:20px;"><i class="icon-warning-sign"></i>&nbsp;&nbsp;&nbsp;<?= lang('label_wallet_rejected') ?></a>      
                   <? } ?>
                    <a class="delete_confirm btn" href="<?= base_url() . get_segment(1) . '/' . get_segment(2) ?>/delete/<?= $result->id ?>"><i class="icon-trash"></i>&nbsp;&nbsp;&nbsp;<?= lang('label_delete') ?></a>
                </div>

            </div>
        </div>
    </div>
</div>

